﻿
using System;
using System.Collections.Generic;

namespace HttpClient
{
	public static class DoGet
	{
		public class DoGetUrl
		{
			HttpRequest request = new HttpRequest();
			public HeaderConfiguration<DoGetUrl> Using {get; private set;}
			
			public DoGetUrl(String url)
			{
				request.url = url;
				request.method = HttpMethod.GET;
				Using = new HeaderConfiguration<DoGetUrl>(request, this);
			}
			
			public HttpResponse ThenCallWithClient(HTTPClient client)
			{
				return client.Execute(request);
			}
		}
		
		public static DoGetUrl On(String url)
		{
			return new DoGetUrl(url);
		}
	}
}
